Expressions and Operators (Cont.)
Bitwise operators
Left shift by n; moves the bits to the left, it discards the far left bit and assigns 0 to the left most bit, otherwise seign extends.
x << n
Right shift by n; moves the bits to the right, discards the far right bit and if insignd assigns 0 to the left most bit, otherwise sign extends.
x << n
Bitwise complement; inverts each bit. ~ is used to create destructors.
~x
Meaning
Operator